package com.taowan.xunbaozl;

import android.util.DisplayMetrics;
import android.view.WindowManager;

import com.taowan.xunbaozl.morning_speak.App;

/**
 * PACKAGE_NAME.app
 * Created by diql on 2016/4/10.
 */
public class DisplayUtils {

    public static DisplayMetrics getScreenMetrics() {
        WindowManager wm = (WindowManager) App.getContext()
                .getSystemService(App.getContext().WINDOW_SERVICE);
        DisplayMetrics dm = new DisplayMetrics();
        wm.getDefaultDisplay().getMetrics(dm);
        return dm;
    }
}
